import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress'
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
  lang: 'zh_CN',

  title: '智慧乡村综合实践平台',
  description: '振兴乡村，创造美好未来',
  base: '/',

  theme: defaultTheme({
    logo: '/logo/logo.png',

    navbar: [
      {
        text: '主页',
        link: '/',
      },
      {
        text: '指南',
        prefix: '/guide/',
        children: [
          { text: '项目简介', link: 'introduction' },
          { text: '部署指南', link: 'get-started' },
          { text: '技术架构', link: 'features' },
          { text: '数据库文档', link: 'database' },
        ],
      },
      { text: 'Gitee', link: 'https://gitee.com/cfnjs20020602/smartVillages' },
    ],
  }),

  bundler: viteBundler(),
})
